package org.example;

import java.io.*;
import java.util.HashMap;
import java.util.Map;

//2.7	修改部门名称(A07)
public class PostDemoA07 {

    public static void main(String[] args) {
        // 构建嵌套JSON结构
        Map<String, Object> data = new HashMap<>();
        data.put("id", "A07");
        data.put("DeptID", "zsdfd150");
        data.put("DeptName", "测试部test");

        try {
// {"data":{"id":"A07","DeptName":"测试部test","DeptID":"zsdfd150"},"openid":"000001","timestamp":"20250507153602"}
            String response = sendJsonPostRequest.sendJsonPostRequest(data);
            System.out.println("响应内容：\n" + response);
// {"errcode":"0","msg":"成功","data":[{"ErrCode":"0","ErrStr":""}]}
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}



